package com.jishaokang.controller;

import com.jishaokang.base.Result;
import com.jishaokang.model.dto.ForbidUser;
import com.jishaokang.model.dto.User;
import com.jishaokang.service.ForbidUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by NANA_Final on 2019/6/21.
 */
@RestController
@RequestMapping(value = "/api")
public class ForbidUserController {

    @Autowired
    private ForbidUserService forbidUserService;
    @RequestMapping(value = "/examiner/forbidUser/addForbidUser",method = RequestMethod.POST)
    public Result addForbidUser(@RequestBody ForbidUser forbidUser) {
        return forbidUserService.addForbidUser(forbidUser);
    }
    @RequestMapping(value = "/examiner/forbidUser/selectForbidUserByUserId",method = RequestMethod.POST)
    public Result selectForbidUserByUserId(@RequestBody ForbidUser forbidUser) {
        return forbidUserService.selectForbidUserByUserId(forbidUser);
    }

}